package tables

import (
	"time"
)

type Coupon struct {
	Id               int       `xorm:"not null pk autoincr INT(10)" json:"id" form:"id" mapstructure:"id"`
	Type             int       `xorm:"" json:"type" form:"type" mapstructure:"type"`
	UserId           int       `xorm:"" json:"user_id" form:"user_id" mapstructure:"user_id"`
	Title            string    `xorm:"" json:"title" form:"title" mapstructure:"title"`
	Name             string    `xorm:"" json:"name" form:"name" mapstructure:"name"`
	Price            string    `xorm:"" json:"price" form:"price" mapstructure:"price"`
	Stock            int       `xorm:"" json:"stock" form:"stock" mapstructure:"stock"`
	ValidNum         int       `xorm:"" json:"valid_num" form:"valid_num" mapstructure:"valid_num"`
	StartEndTime     string    `xorm:"" json:"start_end_time" form:"start_end_time" mapstructure:"start_end_time"`
	ValidDay         int       `xorm:"" json:"valid_day" form:"valid_day" mapstructure:"valid_day"`
	Man              float32   `xorm:"" json:"man" form:"man" mapstructure:"man"`
	Jian             float32   `xorm:"" json:"jian" form:"jian" mapstructure:"jian"`
	Zhe              int       `xorm:"" json:"zhe" form:"zhe" mapstructure:"zhe"`
	IsOneCard        int       `xorm:"" json:"is_one_card" form:"is_one_card" mapstructure:"is_one_card"`
	Condition        string    `xorm:"" json:"condition" form:"condition" mapstructure:"condition"`
	KefuImg          string    `xorm:"" json:"kefu_img" form:"kefu_img" mapstructure:"kefu_img"`
	KefuTel          string    `xorm:"" json:"kefu_tel" form:"kefu_tel" mapstructure:"kefu_tel"`
	MerchantInfo     string    `xorm:"" json:"merchant_info" form:"merchant_info" mapstructure:"merchant_info"`
	MerchantName     string    `xorm:"" json:"merchant_name" form:"merchant_name" mapstructure:"merchant_name"`
	MerchantLocation string    `xorm:"" json:"merchant_location" form:"merchant_location" mapstructure:"merchant_location"`
	PosterImg        string    `xorm:"" json:"poster_img" form:"poster_img" mapstructure:"poster_img"`
	HeadImg          string    `xorm:"" json:"head_img" form:"head_img" mapstructure:"head_img"`
	BgMusic          string    `xorm:"" json:"bg_music" form:"bg_music" mapstructure:"bg_music"`
	Detail           string    `xorm:"" json:"detail" form:"detail" mapstructure:"detail"`
	Config           string    `xorm:"" json:"config" form:"config" mapstructure:"config"`
	Theme            string    `xorm:"" json:"theme" form:"theme" mapstructure:"theme"`
	Views            int       `xorm:"" json:"views" form:"views" mapstructure:"views"`
	Sales            int       `xorm:"" json:"sales" form:"sales" mapstructure:"sales"`
	Income           int       `xorm:"" json:"income" form:"income" mapstructure:"income"`
	ShareTitle       string    `xorm:"" json:"share_title" form:"share_title" mapstructure:"share_title"`
	ShareImg         string    `xorm:"" json:"share_img" form:"share_img" mapstructure:"share_img"`
	Status           int       `xorm:"" json:"status" form:"status" mapstructure:"status"`
	Fid              int       `xorm:"" json:"fid" form:"fid" mapstructure:"fid"`
	FidReward        float32   `xorm:"" json:"fid_reward" form:"fid_reward" mapstructure:"fid_reward"`
	RelPath          string    `xorm:"" json:"rel_path" form:"rel_path" mapstructure:"rel_path"`
	OrderNo          string    `xorm:"" json:"order_no" form:"order_no" mapstructure:"order_no"`
	PayAmount        int       `xorm:"" json:"pay_amount" form:"pay_amount" mapstructure:"pay_amount"`
	PayTime          int       `xorm:"" json:"pay_time" form:"pay_time" mapstructure:"pay_time"`
	ShareTimeline    int       `xorm:"" json:"share_timeline" form:"share_timeline" mapstructure:"share_timeline"`
	ShareAppMessage  int       `xorm:"" json:"share_app_message" form:"share_app_message" mapstructure:"share_app_message"`
	Kouling          string    `xorm:"" json:"kouling" form:"kouling" mapstructure:"kouling"`
	HxUserIds        string    `xorm:"" json:"hx_user_ids" form:"hx_user_ids" mapstructure:"hx_user_ids"`
	PintuanId        int       `xorm:"" json:"pintuan_id" form:"pintuan_id" mapstructure:"pintuan_id"`
	IsGive           int       `xorm:"" json:"is_give" form:"is_give" mapstructure:"is_give"`
	MaxGiveNum       int       `xorm:"" json:"max_give_num" form:"max_give_num" mapstructure:"max_give_num"`
	IsGiveScore      int       `xorm:"" json:"is_give_score" form:"is_give_score" mapstructure:"is_give_score"`
	FailMsg          string    `xorm:"" json:"fail_msg" form:"fail_msg" mapstructure:"fail_msg"`
	CreatedAt        time.Time `xorm:"created" json:"created_at" form:"created_at" mapstructure:"created_at"`
	UpdatedAt        time.Time `xorm:"updated" json:"updated_at" form:"updated_at" mapstructure:"updated_at"`
	DeletedAt        time.Time `xorm:"deleted" json:"deleted_at" form:"deleted_at" mapstructure:"deleted_at"`
	SubMchId         string    `xorm:"" json:"sub_mch_id" form:"sub_mch_id" mapstructure:"sub_mch_id"`
}
